A Web IDL parser
Built with 🦀🕸 by The Rust and WebAssembly Working Group
About
Parses valid WebIDL definitions & produces a data structure starting from
Definitions
.
Usage
Cargo.toml
[]
= "0.9.0"
src/main.rs
A Web IDL parser
Built with 🦀🕸 by The Rust and WebAssembly Working Group
Parses valid WebIDL definitions & produces a data structure starting from
Definitions
.
Cargo.toml
[dependencies]
weedle = "0.9.0"
src/main.rs
fn main() {
let parsed = weedle::parse("
interface Window {
readonly attribute Storage sessionStorage;
};
").unwrap();
println!("{:?}", parsed);
}